import requests from '@/utils/request'
// 获取经纪人列表
export const getAgentsList = (params) => requests({ url: `/agents`, params })
// 获取经纪数
export const getAgentsNum = (params) => requests({ url: '/agents/count', params })
// 新建经纪人
export const addAgentsNum = (data) => requests({ url: '/agents', method: 'post', data })
// 删除经纪人
export const delAgents = (id) => requests({ url: '/agents/' + id, method: 'delete' })
// 获取指定经纪
export const editAgents = (id) => requests({ url: '/agents/' + id })
// 编辑经纪
export const undateAgents = (data) => requests({ url: '/agents/' + data.id, data, method: 'put' })
